home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / CIncludes / Retrace.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-29  |  1.3 KB  |  67 lines  |  [TEXT/MPS ]

  1.  
  2. /************************************************************
  3.  
  4. Created: Sunday, September 15, 1991 at 8:16 PM
  5.  Retrace.h
  6.  C Interface to the Macintosh Libraries
  7.  
  8.  
  9.   Copyright Apple Computer, Inc. 1985-1991
  10.   All rights reserved
  11.  
  12. ************************************************************/
  13.  
  14.  
  15. #ifndef __RETRACE__
  16. #define __RETRACE__
  17.  
  18. #ifndef __TYPES__
  19. #include <Types.h>
  20. #endif
  21.  
  22. #ifndef __OSUTILS__
  23. #include <OSUtils.h>
  24. #endif
  25.  
  26.  
  27. typedef pascal void (*VBLProcPtr)(void);
  28.  
  29. struct VBLTask {
  30.  QElemPtr qLink;
  31.  short qType;
  32.  VBLProcPtr vblAddr;
  33.  short vblCount;
  34.  short vblPhase;
  35. };
  36.  
  37. typedef struct VBLTask VBLTask;
  38.  
  39.  
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. #define GetVBLQHdr() ((QHdrPtr) 0x0160)
  44. #pragma parameter __D0 SlotVInstall(__A0,__D0)
  45. pascal OSErr SlotVInstall(QElemPtr vblBlockPtr,short theSlot)
  46.  = 0xA06F; 
  47. #pragma parameter __D0 SlotVRemove(__A0,__D0)
  48. pascal OSErr SlotVRemove(QElemPtr vblBlockPtr,short theSlot)
  49.  = 0xA070; 
  50. #pragma parameter __D0 AttachVBL(__D0)
  51. pascal OSErr AttachVBL(short theSlot)
  52.  = 0xA071; 
  53. #pragma parameter __D0 DoVBLTask(__D0)
  54. pascal OSErr DoVBLTask(short theSlot)
  55.  = 0xA072; 
  56. #pragma parameter __D0 VInstall(__A0)
  57. pascal OSErr VInstall(QElemPtr vblTaskPtr)
  58.  = 0xA033; 
  59. #pragma parameter __D0 VRemove(__A0)
  60. pascal OSErr VRemove(QElemPtr vblTaskPtr)
  61.  = 0xA034; 
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65.  
  66. #endif
  67.